﻿using System.Web.Optimization;

namespace VideoSeller.Web.App_Start
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
			// Default layout bundles
           
			bundles.Add(new StyleBundle("~/Content/themes/base/defaultstyles").Include(
				"~/Content/themes/base/jquery-ui.css",
				"~/Content/styles/styles.css",
                "~/Content/styles/theme-default.css"));/*theme-default.css added by Hapaniuk*/
	        bundles.Add(new ScriptBundle("~/videoseller/scripts/defaultscripts").Include(
		        "~/Scripts/jquery-{version}.js",
		        "~/Scripts/jquery-ui-{version}.js",
		        "~/Scripts/jquery.validate.js",
				"~/Scripts/carousel.js",
				"~/Scripts/tabs.js",
				"~/Scripts/cabinet.js",
				"~/Scripts/jquery.ddslick.js",
				"~/Scripts/jquery.countdown.js",
				"~/Scripts/AC_RunActiveContent.js",
				"~/Scripts/VSflashmanager.js"));

			bundles.Add(new StyleBundle("~/Content/themes/base/onlinestyles").Include(
				"~/Content/chosen.css",
				"~/Content/styles/timepicker.css"));
	        bundles.Add(new ScriptBundle("~/videoseller/scripts/onlinescripts").Include(
				"~/Scripts/plupload.full.js",
				"~/Scripts/chosen.jquery.js",
				"~/Scripts/jquery.timepicker.js"));

	        bundles.Add(new ScriptBundle("~/videoseller/scripts/financescripts").Include(
		        "~/Scripts/finance.js"));


			// Account layout bundles

			bundles.Add(new StyleBundle("~/Content/themes/base/accountstyles").Include(
				"~/Content/themes/base/jquery-ui.css",
				"~/Content/styles/styles.css"));
			bundles.Add(new ScriptBundle("~/videoseller/scripts/accountscripts").Include(
				"~/Scripts/jquery-{version}.js",
				"~/Scripts/jquery.validate.js",
				"~/Scripts/jquery.ddslick.js",
				"~/Scripts/account.js"));


			// Admin layout bundles

			bundles.Add(new StyleBundle("~/Content/themes/base/adminstyles").Include(
				"~/Content/themes/base/jquery-ui.css",
				"~/Content/styles/timepicker.css",
				"~/Content/admin/styles/admin-panel.css",
				"~/Content/admin/styles/cms.css",
				"~/Content/admin/styles/common.css"));
			bundles.Add(new ScriptBundle("~/videoseller/scripts/adminscripts").Include(
				"~/Scripts/jquery-{version}.js",
				"~/Scripts/jquery-ui-{version}.js",
				"~/Scripts/jquery.timepicker.js",
				"~/Scripts/jquery.validate.js",
				"~/Scripts/admin.js"));

			BundleTable.EnableOptimizations = true;
        }
    }
}